<template>
  <div class="">
    <div>
      <i class="fanh van-icon van-icon-arrow-left" @click="adds"></i>
      <div id="certificate_top">
        <img src="../assets/image/10.png" alt="" />
        <input type="text" name="" id="" value="请输入礼券码" />
        <p>兑换</p>
      </div>
      <div id="certificate_contentone">
        <div>
          <p>1</p>
          <p>元</p>
          <div>
            <p>满减1</p>
            <p>满10元使用</p>
          </div>
          <p>立即领取</p>
        </div>
        <p>领取7天内有效</p>
      </div>
      <div id="certificate_contentones">
        <div>
          <p>1</p>
          <p>元</p>
          <div>
            <p>满减</p>
            <p>满100元使用</p>
          </div>
          <p>立即领取</p>
        </div>
        <p>领取7天内有效</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  methods: {
    adds() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang='scss'>
.fanh {
  font-size: 0.42rem;
  position: fixed;
  left: 0.3rem;
  top: 0.3rem;
  z-index: 1;
}
#certificate_top {
  position: relative;
}
#certificate_top > img {
  width: 100%;
  height: 4.5rem;
  display: block;
}
#certificate_top > input {
  width: 4.5rem;
  height: 0.6rem;
  border: 1px solid #fa893d;
  border-radius: 0.08rem;
  position: absolute;
  left: 0.77rem;
  bottom: 0.68rem;
  font-size: 0.2rem;
  color: #fa893d;
  padding-left: 0.14rem;
  //   margin-t/op: 0.3rem;
}
#certificate_top > p {
  width: 1.22rem;
  height: 0.62rem;
  border-radius: 0.08rem;
  color: white;
  background: #ee7c7b;
  text-align: center;
  line-height: 0.62rem;
  position: absolute;
  left: 5.54rem;
  bottom: 0.7rem;
  font-size: 0.2rem;
}
#certificate_contentone {
  width: 6.82rem;
  height: 2rem;
  border-radius: 0.2rem;
  margin: 0 auto;
  background: #ec7877;
  margin-top: 0.14rem;
  color: white;
}
#certificate_contentone > div {
  height: 2.11rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
#certificate_contentone > div > p:nth-of-type(1) {
  margin-left: 0.3rem;
  font-size: 0.5rem;
  margin-bottom: 0.08rem;
}
#certificate_contentone > div > p:nth-of-type(2) {
  margin-left: 0.1rem;
  font-size: 0.3rem;
}
#certificate_contentone > div > div:nth-of-type(1) {
  height: 0.9rem;
  margin-left: 0.28rem;
  width: 3.56rem;
}
#certificate_contentone > div > div:nth-of-type(1) > p:nth-of-type(1) {
  font-size: 0.3rem;
}
#certificate_contentone > div > div:nth-of-type(1) > p:nth-of-type(2) {
  font-size: 0.3rem;
  margin-top: 0.18rem;
}
#certificate_contentone > div > p:nth-of-type(3) {
  width: 1.3rem;
  height: 0.5rem;
  border-radius: 0.08rem;
  text-align: center;
  line-height: 0.5rem;
  background: #fce8e7;
  color: #d45656;
  font-size: 0.2rem;
}
#certificate_contentone > p {
  height: 0.7rem;
  background: #cc7773;
  border-bottom-left-radius: 0.2rem;
  border-bottom-right-radius: 0.2rem;
  padding-left: 0.12rem;
  line-height: 0.7rem;
  font-size: 0.16rem;
  //   margin-bottom: 0;
  margin-top: -0.25rem;
}

#certificate_contentones {
  width: 6.82rem;
  height: 2rem;
  border-radius: 0.2rem;
  margin: 0 auto;
  background: #ec7877;
  margin-top: 0.8rem;
  color: white;
}
#certificate_contentones > div {
  height: 2.11rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
#certificate_contentones > div > p:nth-of-type(1) {
  margin-left: 0.3rem;
  font-size: 0.5rem;
  margin-bottom: 0.08rem;
}
#certificate_contentones > div > p:nth-of-type(2) {
  margin-left: 0.1rem;
  font-size: 0.3rem;
}
#certificate_contentones > div > div:nth-of-type(1) {
  height: 0.9rem;
  margin-left: 0.28rem;
  width: 3.56rem;
}
#certificate_contentones > div > div:nth-of-type(1) > p:nth-of-type(1) {
  font-size: 0.3rem;
}
#certificate_contentones > div > div:nth-of-type(1) > p:nth-of-type(2) {
  font-size: 0.3rem;
  margin-top: 0.18rem;
}
#certificate_contentones > div > p:nth-of-type(3) {
  width: 1.3rem;
  height: 0.5rem;
  border-radius: 0.08rem;
  text-align: center;
  line-height: 0.5rem;
  background: #fce8e7;
  color: #d45656;
  font-size: 0.2rem;
}
#certificate_contentones > p {
  height: 0.7rem;
  background: #cc7773;
  border-bottom-left-radius: 0.2rem;
  border-bottom-right-radius: 0.2rem;
  padding-left: 0.12rem;
  line-height: 0.7rem;
  font-size: 0.16rem;
  //   margin-bottom: 0;
  margin-top: -0.25rem;
}
</style>
